package com.qys.livesMall.shortVideo.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qys.livesMall.framework.view.BaseQuery;
import com.qys.livesMall.shortVideo.model.entity.ShortVideoHistory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qys.livesMall.shortVideo.model.vo.app.AppUserVideoHistoryVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户浏览视频历史记录 Mapper 接口
 * </p>
 *
 * @author
 * @since 2023-05-30
 */
public interface ShortVideoHistoryMapper extends BaseMapper<ShortVideoHistory> {

    /**
     * 分页查询用户短视频浏览记录
     *
     * @param page
     * @param baseQuery
     */
    List<AppUserVideoHistoryVO> listHistoryToApp(Page<AppUserVideoHistoryVO> page, @Param("baseQuery") BaseQuery baseQuery);
}
